<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工管理系统 - 登录</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="login-container">
    <h2>员工信息管理系统</h2>
    <form action="login" method="post">
        <div class="form-group">
            <label for="username">用户名:</label>
            <input type="text" id="username" name="username" required
                   placeholder="请输入用户名">
        </div>
        <div class="form-group">
            <label for="password">密码:</label>
            <input type="password" id="password" name="password" required
                   placeholder="请输入密码">
        </div>
        <button type="submit" style="width: 100%;">登录</button>
        <%
            String error = (String) request.getAttribute("error");
            if (error != null) {
        %>
        <div class="error"><%= error %></div>
        <% } %>
    </form>
    <div class="test-account">
        <p><strong>测试账号:</strong></p>
        <p>用户名: admin &nbsp;&nbsp; 密码: admin123</p>
        <p>用户名: manager &nbsp;&nbsp; 密码: manager123</p>
    </div>
</div>
</body>
</html>